package com.hengpeng.itfin.domain.draw;

import org.springframework.context.ApplicationContext;

import com.hengpeng.itfin.domain.draw.alipay.AlipayDrawProcessor;
import com.hengpeng.itfinbase.persist.PaymentProvider;

/**
 * <pre>
 * 提现处理器工厂
 * </pre>
 * @author shanguogang
 * @version 1.0, 2015-8-12
 */
public class DrawProcessorFactory
{
	public static DrawProcessor getProcessor(ApplicationContext context, PaymentProvider provider)
	{
		if (provider.getMark().trim().equalsIgnoreCase("alipay"))
		{
			return new AlipayDrawProcessor(context, provider);
		}
		return null;
	}
}
